package server;

import java.util.Observable;
import java.util.logging.Level;
import java.util.logging.Logger;

public class TestThread extends Observable implements Runnable
{
    private final static Logger LOGGER = Logger.getLogger(TestThread.class
        .getName());

    @Override
    public void run()
    {
        while (true)
        {
            try
            {
                setChanged();
                notifyObservers();
                LOGGER.fine("Notifying my observers");
                Thread.sleep(10000);
            }
            catch (InterruptedException ex)
            {
                Logger.getLogger(TestThread.class.getName()).
                        log(Level.SEVERE, null, ex);
            }
            
        }
    }
    
}
